// pages/video/video.js
Page({
  data: {
    movieList:[{
      create_time: '1532519734589', title: '海边随拍',
      src: 'https://v.qq.com/x/page/n0768lh2lxo.html.mp4'
    },{
      create_time: '1532519777690', title: '勿忘心安',
      src: 'https://v.qq.com/x/page/m0657b6u2zs.html.mp4'
    },{
      create_time: '1532519794991', title: '点滴记忆',
      src: 'https://v.qq.com/x/page/d6542t9u1cg.html.mp4'
    }]
  },
  onReady: function(){
    const TxvContext = requirePlugin('txv-video')
    var txvContext = TxvContext.getTxvContext('txv1')
    txvContext.play()     //播放
    txvContext.pause()     //暂停
  }
})